package com.zpark.order.feign;

import com.zpark.order.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @version 1.0
 * @Author YYS
 * @Date 2024/4/26 9:30
 */
@FeignClient("userservice")
public interface UserClient {


    @GetMapping("/user/{id}")
    public User getById(@PathVariable Long id);
}
